package logic

import (
	"context"
	"fresh-box/freshrpc/freshrpc"
	"fresh-box/freshrpc/internal/svc"

	"github.com/zeromicro/go-zero/core/logx"
)

type SortAddLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewSortAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SortAddLogic {
	return &SortAddLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

// 商品分类
func (l *SortAddLogic) SortAdd(in *freshrpc.SortAddRequest) (*freshrpc.SortAddResponse, error) {
	// todo: add your logic here and delete this line
	//
	//sort := mysql.Sort{
	//	Model: gorm.Model{},
	//	Name:  in.Name,
	//}

	return &freshrpc.SortAddResponse{}, nil
}
